package com.oa.security.custom;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @author Admin
 * @title: UserDetailsService
 * @projectName Cloud_OA_Office
 * @description: UserDetailsService
 * @date 2024/10/10 20:54
 */
public interface UserDetailsService
        extends org.springframework.security.core.userdetails.UserDetailsService{
    /**
     * 根据用户名获取用户对象（获取不到直接抛异常）
     */
    UserDetails loadUserByUsername(String username)
            throws UsernameNotFoundException;
}
